﻿using Proxy;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;

namespace ViewModel
{
    public class VM_WindowPassWord:BaseViewModel
    {
        public string pwd;
        public string PassWord { get { return pwd; } set { pwd = value; OnPropertyChanged(); } }

        public VM_WindowPassWord() { 
            
        
        }

        public BaseCommand ValidatePWDCommand { get => new BaseCommand(ValidatePWDCommand_Executed); }
        private void ValidatePWDCommand_Executed(object obj)
        {
                (this.UIElement as Window).DialogResult = true;
            this.Close();
        }

        private bool validatePWD(string pwd) { 
        
            if(pwd == "xgxm")
            {
                return true;
            }
            else
            {
                return false;
            }
        }
    }
}
